@import "reset";
@import "base";

/* header style */
.header {
    height: 78px;
    padding: 0 30px;
    background: url(../img/bg_header.jpg) no-repeat;
    background: linear-gradient(to right, #462dff, #2385ff);

    .logo {
        float: left;
        display: block;
        width: 246px;
        height: 29px;
        margin: 23px 0 0 0;

        img {
            display: block;
            width: 100%;
            height: 100%;
        }
    }

    h1 {
        font-size: 0;
        line-height: 0;
    }

    .r {
        float: right;
        height: 100%;
    }

    .nav, .search {
        display: inline-block;
        vertical-align: middle;
    }

    .nav {
        height: 100%;

        a {
            position: relative;
            display: inline-block;
            height: 100%;
            line-height: 78px;
            margin: 0 0 0 46px;
            padding: 0 4px;
            font-size: 18px;
            color: #b1e3ff;
            transition: margin 0.5s;

            &:before {
                content: "";
                position: absolute;
                bottom: 0;
                left: 50%;
                width: 0;
                height: 4px;
                background: #fff;
                transition: all 0.5s;
            }

            &:hover, &.active {
                color: #fff;

                &:before {
                    left: 0;
                    width: 100%;
                }
            }
        }
    }

    .search {
        position: relative;
        width: 148px;
        height: 29px;
        line-height: 29px;
        padding: 0 5px 0 10px;
        margin: 0 0 0 20px;
        border-radius: 15px;
        background: #fff;
        overflow: hidden;

        input {
            width: 105px;
            height: 29px;
            line-height: 29px;
            padding: 0 5px 0 10px;
        }

        button {
            position: absolute;
            top: 50%;
            right: 10px;
            width: 20px;
            height: 20px;
            margin-top: -8px;
            font-size: 0;
            line-height: 0;
            background: url(../img/ico_search_normal.png?__sprite) no-repeat;
            cursor: pointer;
            background-color: transparent;

            &:hover {
                background: url(../img/ico_search_hover.png?__sprite) no-repeat;
            }
        }
    }
}

/* footer style */
.footer {
    height: 60px;
    line-height: 60px;
    margin-top: -60px;
    text-align: center;
    color: #fff;
    font-size: 12px;
    background: url(../img/bg_footer.jpg) no-repeat;
    background: linear-gradient(to right, #355aff, #2385ff);
}

/* back to top button style */
.to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 0;
    line-height: 0;
    background: url(../img/ico_to_top.png?__sprite) 10px 13px  no-repeat;
    background-color: #2c6fff;
}

@media screen and (max-width: 1300px) {
    .header {
        .nav {
            a {
                margin-left: 20px;
            }
        }
    }
}